Optimal. Leaf size=90 \[ -\frac{b^2 \log (a+b \sinh (c+d x))}{a d \left (a^2+b^2\right )}-\frac{b \tan ^{-1}(\sinh (c+d x))}{d \left (a^2+b^2\right )}-\frac{a \log (\cosh (c+d x))}{d \left (a^2+b^2\right )}+\frac{\log (\sinh (c+d x))}{a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.169638, antiderivative size = 90, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.24, Rules used = {2837, 12, 894, 635, 203, 260} \[ -\frac{b^2 \log (a+b \sinh (c+d x))}{a d \left (a^2+b^2\right )}-\frac{b \tan ^{-1}(\sinh (c+d x))}{d \left (a^2+b^2\right )}-\frac{a \log (\cosh (c+d x))}{d \left (a^2+b^2\right )}+\frac{\log (\sinh (c+d x))}{a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2837
Rule 12
Rule 894
Rule 635
Rule 203
Rule 260
Rubi steps
\begin{align*} \int \frac{\text{csch}(c+d x) \text{sech}(c+d x)}{a+b \sinh (c+d x)} \, dx &=-\frac{b \operatorname{Subst}\left (\int \frac{b}{x (a+x) \left (-b^2-x^2\right )} \, dx,x,b \sinh (c+d x)\right )}{d}\\ &=-\frac{b^2 \operatorname{Subst}\left (\int \frac{1}{x (a+x) \left (-b^2-x^2\right )} \, dx,x,b \sinh (c+d x)\right )}{d}\\ &=-\frac{b^2 \operatorname{Subst}\left (\int \left (-\frac{1}{a b^2 x}+\frac{1}{a \left (a^2+b^2\right ) (a+x)}+\frac{b^2+a x}{b^2 \left (a^2+b^2\right ) \left (b^2+x^2\right )}\right ) \, dx,x,b \sinh (c+d x)\right )}{d}\\ &=\frac{\log (\sinh (c+d x))}{a d}-\frac{b^2 \log (a+b \sinh (c+d x))}{a \left (a^2+b^2\right ) d}-\frac{\operatorname{Subst}\left (\int \frac{b^2+a x}{b^2+x^2} \, dx,x,b \sinh (c+d x)\right )}{\left (a^2+b^2\right ) d}\\ &=\frac{\log (\sinh (c+d x))}{a d}-\frac{b^2 \log (a+b \sinh (c+d x))}{a \left (a^2+b^2\right ) d}-\frac{a \operatorname{Subst}\left (\int \frac{x}{b^2+x^2} \, dx,x,b \sinh (c+d x)\right )}{\left (a^2+b^2\right ) d}-\frac{b^2 \operatorname{Subst}\left (\int \frac{1}{b^2+x^2} \, dx,x,b \sinh (c+d x)\right )}{\left (a^2+b^2\right ) d}\\ &=-\frac{b \tan ^{-1}(\sinh (c+d x))}{\left (a^2+b^2\right ) d}-\frac{a \log (\cosh (c+d x))}{\left (a^2+b^2\right ) d}+\frac{\log (\sinh (c+d x))}{a d}-\frac{b^2 \log (a+b \sinh (c+d x))}{a \left (a^2+b^2\right ) d}\\ \end{align*}
Mathematica [C] time = 0.133677, size = 92, normalized size = 1.02 \[ -\frac{\frac{2 b^2 \log (a+b \sinh (c+d x))}{a \left (a^2+b^2\right )}+\frac{\log (-\sinh (c+d x)+i)}{a+i b}+\frac{\log (\sinh (c+d x)+i)}{a-i b}-\frac{2 \log (\sinh (c+d x))}{a}}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 123, normalized size = 1.4 \begin{align*}{\frac{1}{da}\ln \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) }-{\frac{{b}^{2}}{d \left ({a}^{2}+{b}^{2} \right ) a}\ln \left ( \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}a-2\,\tanh \left ( 1/2\,dx+c/2 \right ) b-a \right ) }-{\frac{a}{d \left ({a}^{2}+{b}^{2} \right ) }\ln \left ( \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}+1 \right ) }-2\,{\frac{b\arctan \left ( \tanh \left ( 1/2\,dx+c/2 \right ) \right ) }{d \left ({a}^{2}+{b}^{2} \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.72629, size = 186, normalized size = 2.07 \begin{align*} -\frac{b^{2} \log \left (-2 \, a e^{\left (-d x - c\right )} + b e^{\left (-2 \, d x - 2 \, c\right )} - b\right )}{{\left (a^{3} + a b^{2}\right )} d} + \frac{2 \, b \arctan \left (e^{\left (-d x - c\right )}\right )}{{\left (a^{2} + b^{2}\right )} d} - \frac{a \log \left (e^{\left (-2 \, d x - 2 \, c\right )} + 1\right )}{{\left (a^{2} + b^{2}\right )} d} + \frac{\log \left (e^{\left (-d x - c\right )} + 1\right )}{a d} + \frac{\log \left (e^{\left (-d x - c\right )} - 1\right )}{a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.6949, size = 350, normalized size = 3.89 \begin{align*} -\frac{2 \, a b \arctan \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right )\right ) + b^{2} \log \left (\frac{2 \,{\left (b \sinh \left (d x + c\right ) + a\right )}}{\cosh \left (d x + c\right ) - \sinh \left (d x + c\right )}\right ) + a^{2} \log \left (\frac{2 \, \cosh \left (d x + c\right )}{\cosh \left (d x + c\right ) - \sinh \left (d x + c\right )}\right ) -{\left (a^{2} + b^{2}\right )} \log \left (\frac{2 \, \sinh \left (d x + c\right )}{\cosh \left (d x + c\right ) - \sinh \left (d x + c\right )}\right )}{{\left (a^{3} + a b^{2}\right )} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.27236, size = 211, normalized size = 2.34 \begin{align*} -\frac{b^{3} \log \left ({\left | b{\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )} + 2 \, a \right |}\right )}{a^{3} b d + a b^{3} d} - \frac{{\left (\pi + 2 \, \arctan \left (\frac{1}{2} \,{\left (e^{\left (2 \, d x + 2 \, c\right )} - 1\right )} e^{\left (-d x - c\right )}\right )\right )} b}{2 \,{\left (a^{2} d + b^{2} d\right )}} - \frac{a \log \left ({\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )}^{2} + 4\right )}{2 \,{\left (a^{2} d + b^{2} d\right )}} + \frac{\log \left ({\left | e^{\left (d x + c\right )} - e^{\left (-d x - c\right )} \right |}\right )}{a d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]